package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.ApiOperation;

/**
 * @author Jt
 * @date 2021/4/10 22:29
 */
public interface AdSensitiveService extends IService<AdSensitive> {

    /**
     * 查询敏感词列表
     * @param sensitiveDto
     * @return
     */
    public ResponseResult list (SensitiveDto sensitiveDto);

    /**
     * 新增敏感词
     * @param adSensitive
     * @return
     */
    public ResponseResult insert (AdSensitive adSensitive);

    /**
     * 修改敏感词
     * @param adSensitive
     * @return
     */
    public ResponseResult update (AdSensitive adSensitive);

    /**
     * 根据ID删除敏感词
     * @param id
     * @return
     */
    public ResponseResult delete (Integer id);

}
